﻿CREATE PROCEDURE [dbo].[proc_Statistics_Financial_DailylistCount]
	(
		@CompanyId int,
		@StartDate nchar(10),
		@EndDate nchar(10)
	)
AS
	Select Count(Id),Sum(IBA),Sum(IBB),Sum(IBC)
	From Statistics_Financial
	Where (@CompanyId=0 Or CompanyId=@CompanyId) and Convert(nchar(10),CreateDate,120) between @StartDate and @EndDate
	RETURN
